﻿using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;

namespace Somnus.Contracts
{
    [ServiceContract]
    public interface IWirelessAPXmlService
    {
        [OperationContract(Name = "GetWiFiDataXml")]
        [WebInvoke(RequestFormat = WebMessageFormat.Xml, ResponseFormat = WebMessageFormat.Xml, UriTemplate = "GetMostWiFiData", BodyStyle = WebMessageBodyStyle.Wrapped)]
        [return: MessageParameter(Name = "wirelessap")]
        WirelessAP GetMostRelativeWirelessAPData(WirelessAP wirelessap);

        [OperationContract(Name = "InsertWiFiDataXml")]
        [WebInvoke(RequestFormat = WebMessageFormat.Xml, ResponseFormat = WebMessageFormat.Xml, UriTemplate = "InsertWiFiData", BodyStyle = WebMessageBodyStyle.Wrapped)]
        bool InsertWirelessAPData(WirelessAP wirelessap);

        [OperationContract(Name = "SendMessageXml")]
        [WebInvoke(Method = "GET", ResponseFormat = WebMessageFormat.Xml, UriTemplate = "SendMessage/{Message}", BodyStyle = WebMessageBodyStyle.Wrapped)]
        string SendMessage(string Message);

        [OperationContract(Name = "GetTestWiFiDataXml")]
        [WebInvoke(Method = "GET", ResponseFormat = WebMessageFormat.Xml, UriTemplate = "GetTest", BodyStyle = WebMessageBodyStyle.Wrapped)]
        [return: MessageParameter(Name = "wirelessap")]
        WirelessAP GetTestWirelessAPData();
    }
}
